package com.xinsilu.hospital.service.impl;

import com.xinsilu.hospital.entity.DrugTable;
import com.xinsilu.hospital.mapper.DrugTableMapper;
import com.xinsilu.hospital.service.IDrugTableService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author ym
 * @since 2021-09-22
 */
@Service
public class DrugTableServiceImpl extends ServiceImpl<DrugTableMapper, DrugTable> implements IDrugTableService {
    @Autowired
    private DrugTableMapper drugTableMapper;
    @Override
    public List<DrugTable> listDrug(DrugTable drugTable) {
        return drugTableMapper.listDrug(drugTable);
    }

    @Override
    public boolean xiugaishu(DrugTable drugTable) {
        return drugTableMapper.xiugaishu(drugTable);
    }
}
